#ifndef TEST_THS_TEST_H_
#define TEST_THS_TEST_H_

#include <string.h>

void ths_test_assert_true(_Bool condition, char const* message, char const* func, char const* file, int line);

#define assert_that(condition, message)					\
		ths_test_assert_true(condition, message, __func__, __FILE__, __LINE__)

#define SOURCE(source, content)						\
	uint8_t* source = calloc(strlen(content) + 1, sizeof(uint8_t));	\
	{	char const* content_string = content;			\
		memcpy(source, content_string, strlen(content) + 1);	\
	}


void ths_test_all();


#endif /* TEST_THS_TEST_H_ */
